#ifndef PACKET_H
#define PACKET_H

#define P_Broadcast_Server_Version 10
#define P_Broadcast_Client_Version 11
#define P_Broadcast_Room_INFO_ 12
#define P_Broadcast_User_ID 13
#define P_Broadcast_Room_Current 14
#define P_Broadcast_Room_Total 15
#define P_Broadcast_Room_ID 16



#define P_USER_COMMAND 20
typedef enum
{
	P_USER_COMMAND_LOGIN_JOIN,
	P_USER_COMMAND_LOGIN_QUICKJOIN,
	P_USER_COMMAND_LOGIN_CREATE,
	P_USER_COMMAND_LOGIN,
	P_USER_COMMAND_CREATE,
	P_USER_COMMAND_START,
	P_USER_COMMAND_QUICK_JOIN,
	P_USER_COMMAND_JOIN,
	P_USER_COMMAND_EXIT,
	P_USER_COMMAND_EXIT_CONFIRM,
	P_USER_COMMAND_GAME,
	P_USER_COMMAND_MSG
};
#define P_USER_ROOM_NAME 21
#define P_USER_NAME 22
#define P_USER_ROOM_MSG 23

#define P_SERVER_COMMAND 25
typedef enum
{
	P_SERVER_COMMAND_LOGIN_ACCEPT,
	P_SERVER_COMMAND_JOIN_ACCEPT,
	P_SERVER_COMMAND_CREATE_ACCEPT,
	P_SERVER_COMMAND_ROOM
};

#define P_ROOM 30
typedef enum
{
	P_ROOM_GAME_START ,
	P_ROOM_GAME_FINISH ,
	P_ROOM_DELETE ,
};

#define P_ROOM_PLAYERNUMBER 31
#define P_ROOM_PLAYER_MAP 32
#define P_ROOM_PLAYER_ID 33
#define P_ROOM_HOST_ID 34
#define P_ROOM_MSG	35
#define P_ROOM_MSG_ID	36
#define P_ROOM_GAME_MAP	37

#define P_GAME_GETCARD 40
#define P_GAME_WAITINPUT 41
typedef enum
{
	P_GAME_WAITINPUT_AUC ,
	P_GAME_WAITINPUT_COMBINE,
	P_GAME_WAITINPUT_FIXED,
	P_GAME_WAITINPUT_OPEN,
	P_GAME_WAITINPUT_ROUND,
	P_GAME_WAITINPUT_SECRET,
	P_GAME_WAITINPUT_LAST
};
#define P_GAME_GETMONEY 42
#define P_GAME_BOUGHTCARD 43
#define P_GAME_ROUND_CONTROL 44
#define P_GAME_MONEY 45
#define P_GAME_MESSAGE 46
#define P_GAME_SOLDCARD 47
#define P_GAME_LOSEMONEY 48

#define P_GAME_CONTROL 49
typedef enum
{
	P_GAME_CONTROL_ROUND_FINIDH,
	P_GAME_CONTROL_GAME_FINIDH,
};
#define P_GAME_PIC_FIRST 50
#define P_GAME_PIC_SECOND 51
#define P_GAME_PIC_THIRD 52

typedef enum
{
	P_GAME_PLAYER0 = 60,
	P_GAME_PLAYER1 = 61,
	P_GAME_PLAYER2 = 62,
	P_GAME_PLAYER3 = 63,
	P_GAME_PLAYER4 = 64,
};


#define P_PRICE  100
#define P_COMMAND 110
typedef enum
{
	P_COMMAND_DEFAULT,
	P_COMMAND_YES,
	P_COMMAND_NO
};
#define P_ACTION 120
typedef enum
{
	P_ACTION_DEFAULT,
	P_ACTION_BID,
	P_ACTION_AUC,
	P_ACTION_COMBINE
} P_ACTION_TYPE;

#define P_CARD   122










#endif